package com.biz;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.po.Empwelfare;
import com.services.daoServices;

@Transactional
@Service("EmpWelfareBiz")
public class EmpWelfareBiz implements IEmpWelfareBiz {
	@Resource(name = "daoServices")
	private daoServices daoServices;

	public daoServices getDaoServices() {
		return daoServices;
	}

	public void setDaoServices(daoServices daoServices) {
		this.daoServices = daoServices;
	}

	@Override
	public List<Empwelfare> findAll(int page, int rows) {
		return daoServices.getEmpwelfareDAO().findPageAll(page, rows);
	}

	@Override
	public int getPages(int rows) {
		return daoServices.getEmpwelfareDAO().findMaxPage(rows);
	}

	
}
